package com.wuye.model.customer;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanchi on 2016/6/30.
 */
public class OptionSecond implements Serializable{
//    public String toString() {
//        try {
//            return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
//        } catch (Exception e) {
//            return e.getMessage();
//        }
//    }


    @Override
    public String toString() {
        return "{" +
                "\"id\":\"" + id +
                "\", \"selectname\":\"" + selectname +
                "\", \"parentId\":\"" + parentId +
                "\", \"taidu\":" + taidu +
                "}";
    }

    private Integer id;
    private String selectname;
    private Integer parentId;
    private List<OptionThred> taidu = new ArrayList<OptionThred>();
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public OptionSecond() {
    }

    public OptionSecond(Integer id, String name, Integer parentId, List<OptionThred> lists) {
        this.id = id;
        this.selectname = name;
        this.parentId = parentId;
        this.taidu = lists;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getSelectname() {
        return selectname;
    }

    public void setSelectname(String selectname) {
        this.selectname = selectname;
    }

    public List<OptionThred> getTaidu() {
        return taidu;
    }

    public void setTaidu(List<OptionThred> taidu) {
        this.taidu = taidu;
    }
}
